package com.tencent.sr.iris.basic.mp.service.station;

import com.alibaba.fastjson.JSON;
import com.tencent.sr.iris.basic.mp.dependency.station.StationMessageRecordDependency;
import com.tencent.sr.iris.basic.service.interfaces.request.station.StationMessageRecordBasicRequest;
import com.tencent.sr.iris.basic.service.interfaces.request.station.StationMessageRecordPageRequest;
import com.tencent.sr.iris.basic.service.interfaces.response.station.StationMessagePageResponse;
import com.tencent.sr.iris.basic.service.interfaces.response.station.StationMessageRecordPageResponse;
import com.tencent.sr.rmall.common.request.PaginationRequest;
import com.tencent.sr.rmall.common.response.PaginationResponse;
import java.util.List;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class StationMessageService {
    @Resource
    private StationMessageRecordDependency stationMessageRecordDependency;

    public Long unreadNum(StationMessageRecordBasicRequest request) {
        log.info("StationMessageService.unreadNum，入参：{}", JSON.toJSONString(request));
        return stationMessageRecordDependency.unreadNum(request);
    }


    public List<StationMessageRecordPageResponse> channelAndStationPage(StationMessageRecordPageRequest request) {
        log.info("StationMessageService.channelAndStationPage，入参：{}", JSON.toJSONString(request));
        return stationMessageRecordDependency.channelAndStationPage(request);
    }

    public PaginationResponse<StationMessagePageResponse> page(
            PaginationRequest<StationMessageRecordBasicRequest> request) {
        log.info("StationMessageService.page，入参：{}", JSON.toJSONString(request));
        return stationMessageRecordDependency.page(request);
    }


    public Boolean readRecord(StationMessageRecordBasicRequest request) {
        log.info("StationMessageService.readRecord，入参：{}", JSON.toJSONString(request));
        return stationMessageRecordDependency.readRecord(request);
    }
}
